<?php 


$num=100;
function qiuhe($num){
	$y=0;
	for ($i=1; $i <=$num ; $i++) { 
		
		$y=$i+$y;
		
	};
	return $y;
};
$res=qiuhe($num);
echo $res;












 ?>